package com.mdp.core;

import com.mdp.core.config.MsgTplProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MsgTplUtils {

    static MsgTplProperties tpl;

    @Autowired
    public void setTpl(MsgTplProperties tpl) {
        MsgTplUtils.tpl=tpl;
    }

    public static   String getMsgTpl(String tipscode){
        if(tpl==null){
            return null;
        }
        return tpl.getMsgTpl(tipscode);
    }
}
